package com.badger.spring.cloud.alibaba.consumer;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @EnableDiscoveryClient 开启服务注册和发现
 * @EnableFeignClients 开启feign的客户端
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@MapperScan("com.badger.spring.cloud.alibaba.consumer.mapper")
public class OpenFeignConsumerApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(OpenFeignConsumerApplication.class, args);
    }

}
